import request from '@/utils/request'


//医院的相关请求
export default{
    //分页条件查询

    getPageList(page,size,searchObj){
        return request({
            url:`/admin/hosp/hospital/pageList/${page}/${size}`,
            method:'post',
            data: searchObj
            
        })
    
    },


    //获取医院详情

    getById(id){
        return request({
            url:`/admin/hosp/hospital/getById/${id}`,
            method:'post',
        })
    },


    getListByName(hosname){
        return request({
            url:`/admin/hosp/hospital/getListByName/${hosname}`,
            method:'post',
        })
    },

    //根据code 查询医院详情
    getByCode(hoscode){
        return request({
            url:`/admin/hosp/hospital/getByCode/${hoscode}`,
            method:'post',
        })
    },
}


  
    
